<?php
ob_start();
session_start();
define('urlSeperator','/');
$config = array();
//$config['site']['url'] = 'http://'.$_SERVER['HTTP_HOST'].'/bob';
$config['site']['url'] = 'http://localhost/bob';
//$config['site']['url'] = 'http://213.175.221.64/~gatic/gatic';
include('functions.php');
$config['site']['pageinfo'] = pathinfo($_SERVER['REQUEST_URI']);
$config['site']['currentPage'] = $config['site']['pageinfo']['filename'];

$top_header_loader = array();
$top_header_loader[''] = 'gatic_only_logo.png';
$top_header_loader['index'] = 'gatic_only_logo.png';
$top_header_loader['company'] = 'gatic_only_logo.png';
$top_header_loader['innerone'] = 'gatic_only_logo.png';
$top_header_loader['about'] = 'gatic_logo.jpg';
$top_header_loader['access_covers'] = 'gatic_access_covers.jpg';
$top_header_loader['slotcover_testimonial'] = 'gatic_access_covers.jpg';
$top_header_loader['slotdrain_testimonial'] = 'gatic_logo.jpg';
$top_header_loader['product_selector'] = 'gatic_logo.jpg';
$top_header_loader['ultraslot_features'] = 'gatic_logo.jpg';
$top_header_loader['ultraslot_features_benefits'] = 'gatic_logo.jpg';
$top_header_loader['ultr_slot_range'] = 'gatic_logo.jpg';
$top_header_loader['ultr_slot_typical_app'] = 'gatic_logo.jpg';
$top_header_loader['ultr_slot_casestudy'] = 'gatic_logo.jpg';
$top_header_loader['slotdrain_view_by_app'] = 'gatic_logo.jpg';
$top_header_loader['slotdrain_view_by_product'] = 'gatic_logo.jpg';
$top_header_loader['ultraslotdrain_testimonal'] = 'gatic_logo.jpg';
$top_header_loader['slot_features_benifits'] = 'gatic_logo.jpg';
$top_header_loader['slot_tech_support'] = 'gatic_logo.jpg';
$top_header_loader['testimonal_slotdrain'] = 'gatic_logo.jpg';
$top_header_loader['slotdrain_downloads'] = 'gatic_logo.jpg';
$top_header_loader['slodtrain_case_study'] = 'gatic_logo.jpg';



$top_header_loader['access_covers_testimonal']  = 'gatic_access_covers.jpg';
$top_header_loader['access_covers_benifits']  = 'gatic_access_covers.jpg';
$top_header_loader['access_covers_view_by_app'] = 'gatic_access_covers.jpg';
$top_header_loader['access_covers_view_by_product'] = 'gatic_access_covers.jpg';
$top_header_loader['access_covers_features_benifits'] = 'gatic_access_covers.jpg';
$top_header_loader['access_covers_tech_support'] = 'gatic_access_covers.jpg';
$top_header_loader['access_covers_load_cat'] = 'gatic_access_covers.jpg';
$top_header_loader['access_covers_load_grp'] = 'gatic_access_covers.jpg';
$top_header_loader['access_duct_covers_benifits']= 'gatic_access_covers.jpg';
$top_header_loader['accesscover_downloads']= 'gatic_access_covers.jpg';

$title = 'Loading Group B125';

/* Bg class for different colors in the same page */

$sub_page = isset($_GET['style'])?$_GET['style']:'';


$config['pages']['covers'] = array(
	'Applications'=>'access_covers_load_cat.html',
	'Product Selector'=>'access_covers_load_cat.html?ps=1',
	'Features & Benefits'=>'access_covers_features_benifits.html',
	'Technical Support'=>'access_covers_tech_support.html',
	'Downloads'=>'accesscover_downloads.html',
	'Testimonials'=>'slotcover_testimonial.html',
	'Case Studies'=>'#',
    '_access_covers'=>'access_covers.html',
    '_load_cat'=>'access_covers_load_cat.html',
	'_access_covers_testimonal' => 'access_covers_testimonal.html'	);

$config['pages']['slotdrain'] = array(
	'Applications'=>'slotdrain_view_by_app.html',
	'Product Selector'=>'product_selector.html',
	'Features & Benefits'=>'ultraslot_features_benefits.html',
	'Technical Support'=>'slot_tech_support.html',
	'Downloads'=>'slotdrain_downloads.html',
	'Testimonials'=>'slotdrain_testimonial.html',
	'Case Studies'=>'#',
    '_about'=>'about.html',
	'_slotdrain_view_by_product' => 'slotdrain_view_by_product.html',
	'_slotdrain_view_by_app' => 'slotdrain_view_by_app.html',
	'_ultr_slot_range' => 'ultr_slot_range.html',
	'_ultr_slot_typical_app' => 'ultr_slot_typical_app.html',
	'_ultr_slot_casestudy' => 'ultr_slot_casestudy.html',
	'_ultraslotdrain_testimonal' => 'ultraslotdrain_testimonal.html',
    '_case study' => 'ultraslotdrain_testimonal.html',
	'_slotdrain_downloads' => 'slodtrain_case_study.html');

$config['pages']['index'] = array(
	'Applications'=>'#',
	'Product Selector'=>'#',
	'Features & Benefits'=>'#',
	'Technical Support'=>'#',
	'Downloads'=>'#',
	'Testimonials'=>'#',
	'Case Studies'=>'#');
    
if($config['site']['currentPage']=='index'){
    $_SESSION['page'] = 'index';
}   
else
{
    if(in_array($config['site']['currentPage'].'.html',$config['pages']['slotdrain']))
    {
         $_SESSION['page'] = 'slotdrain';
    }
    elseif(in_array($config['site']['currentPage'].'.html',$config['pages']['covers']))
    {
         $_SESSION['page'] = 'covers';
    }    
} 
if(!isset($_SESSION['page']))
{
    $_SESSION['page'] = 'index';
}

if(isset($_GET['title']))
{
	$title = $_GET['title'];
}